﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RawLevelFormat;
using Microsoft.Xna.Framework.Content;

namespace theguineasyndrome.editor.io
{
    public class Reader : ContentTypeReader<RawLevel>
    {
        protected override RawLevel Read(ContentReader input,
            RawLevel existingInstance)
        {
            int length = (int)input.BaseStream.Length;
            return RawLevel.fromBytes(input.ReadBytes(length));
        }
    }
}
